package com.ler.yrmall.order.form;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ler.yrmall.member.dto.MemberReceiveAddressDTO;
import com.ler.yrmall.order.entity.OrderItemEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Leron
 */
@Data
public class OrderSubmitForm implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long addressId;

    private String orderToken;

    private Long couponId;

    private MemberReceiveAddressDTO defaultAddress;

    private List<OrderItemEntity> items;

    private Integer count;

    private BigDecimal totalAmount;

    // todo 此类型下单需要清空购物车
    private Boolean isCartOrder;

}
